﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Strategy
{
    public class ModelBase
    {
        private IMoveAble _move;
        private ISingable _singThing;
        public ModelBase(IMoveAble moveable)
        {
            _move = moveable;
        }

        public string Name { get; set; }
        public void GotoB()
        {
            Console.WriteLine("出发了");
            _move.GoGoGo();
            _singThing.SingSong();
        }
    }
}
